<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.min.css}" />
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-sm">
        </div>
        <div class="col-sm">
            <br>
            <br>
            <br>
            <h3>登录</h3>
            <form th:action="@{/login}" method="post" th:object="${loginUser}">
                <div class="form-group">
                    <label for="username">用户名</label>
                    <input type="text" id="username" name="username" class="form-control" th:value="${username}"
                           placeholder="请输入用户名">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" name="password" class="form-control" th:value="${password}"
                           placeholder="密码">
                </div>
                <button type="submit" class="btn btn-primary">登录</button>
                <a th:href="@{/registered}" class="btn btn-link active">去注册</a>
            </form>

        </div>
        <div class="col-sm">
        </div>
    </div>
</div>

</body>
</html>